import {
  message as MessageDHX,
  alert as AlertDHX,
} from 'dhx-suite-package';

function Message(msg) {
  return MessageDHX({ text: msg, expire: 3000 });
}

function Alert(msg) {
  return AlertDHX({
    header: '错误',
    text: msg,
    buttons: ['关闭'],
    buttonsAlignment: 'center',
    css: 'message_style',
  });
}

export {
  Message,
  Alert,
};
